package com.atguigu.ssyx.client.search;

import com.atguigu.ssyx.model.search.SkuEs;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * ClassName: SkuFeignClient
 * Package: com.atguigu.ssyx.client.search
 * Description:
 *
 * @Author: 比特张
 * @Create: 2023/7/22 - 17:26
 * @Version: v1.0
 */
@FeignClient("service-search")
public interface SkuFeignClient {
    //获取爆款商品
    @GetMapping("/api/search/sku/inner/findHotSkuList")
    List<SkuEs> findHotSkuList();

    //更新商品热度
    @GetMapping("/api/search/sku/inner/incrHotScore/{skuId}")
    Boolean incrHotScore(@PathVariable Long skuId);
}
